/**
 * @author zj
 * @desc:
 * @date: 2024/9/1 01
 */
import request from "@/request/index.js";

//获取用户列表
export function getUserList(data) {
  return request.post("/system/user/page", data);
}

export function userAdd(data) {
  return request.post("/system/user/save", data);
}

//删除用户
export function userDelete(data) {
  return request.post("/system/user/delete", data);
}

//修改状态
export function userChangeStatus(data) {
  return request.post("/system/user/status", data);
}

//根据id查询用户
export function getUserById(id) {
  return request.get("/system/user/" + id);
}

// 用户分配角色
export function userAddRole(data) {
  return request.post("/system/user/authRole", data);
}
